home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / MouseGetCursor.au3 < prev    next >
Text File  |  2006-06-17  |  375b  |  10 lines

  1. sleep(2000)  ;allow time to move mouse before reporting ID
  2.  
  3. ;create an array that tells us the meaning of an ID Number
  4. $IDs = StringSplit("AppStarting|Arrow|Cross|Help|IBeam|Icon|No|" & _
  5. "Size|SizeAll|SizeNESW|SizeNS|SizeNWSE|SizeWE|UpArrow|Wait", "|")
  6. $IDs[0] = "Unknown"
  7.  
  8. $cursor = MouseGetCursor()
  9. MsgBox(4096, "ID = " & $cursor, "Which means " & $IDs[$cursor])
  10.